package com.wanshi.cloud.client;

import com.wanshi.cloud.entity.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="product-server")
@RequestMapping("/feign/product")
public interface ProductClient {

    //根据id查商品
    @GetMapping("/{id}")
    Products findById(@PathVariable Integer id);
}
